"use strict";

var util = require('util');
var BaseFilter = require('./FilterBase.js');
var vocabulary = require('./wordAdv.json');
/**
 * 过滤副词
 * @constructor
 */
function FilterAdv(__isDebug) {
  this.__isDebug = __isDebug;
  this.__passed = [];
  this.__blocked = [];
  this.init(vocabulary.acceptList, vocabulary.rejectList);
  this.adv1 = '很最去好这那没大小极挺太稍更越都总共只仅净光就已曾刚才正在将就常永还再必准不没未别莫勿甭岂就可又再还';
}
util.inherits(FilterAdv, BaseFilter);
module.exports = FilterAdv;

var theProto = FilterAdv.prototype;

/**
 * 首字母是 给定副词
 * @param str
 * @returns {boolean}
 */
theProto.detailFilter = function (str) {
  if (str.length === 2 && this.adv1.indexOf(str.charAt(0)) >= 0) {
    return false;
  }

  return true;
};